﻿using System.Collections;
using System.Collections.Generic;

namespace BanSupport
{
    public class CommandData
    {
        public int playerId;
        public ActionData[] actions;
    }

    public class ActionData
    {
        public enum Type { Move, Attack };
        public Type type;
        public ActionData(Type type)
        {
            this.type = type;
        }
    }

    public class MoveActionData : ActionData
    {
        public MoveActionData() : base(Type.Move) { }
        public int unitId;
        public long posX;
        public long posY;
    }

    public class AttackActionData : ActionData
    {
        public AttackActionData() : base(Type.Attack) { }
        public int unitId;
        public int targetUnitId;
    }

}